package com.union.vehicleassistant.http.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;

import java.io.File;

public final class UploadApi implements IRequestApi {
    @NonNull
    @Override
    public String getApi() {
        return "file/upload";
    }

    /**
     * 图片文件
     */
    public File file;

    public UploadApi setFile(File file) {
        this.file = file;
        return this;
    }

    public static class Bean {

        private String filename;
        private String url;
        private int tableId;
        private String fileType;

        public String getFilename() {
            return filename;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getTableId() {
            return tableId;
        }

        public void setTableId(int tableId) {
            this.tableId = tableId;
        }

        public String getFileType() {
            return fileType;
        }

        public void setFileType(String fileType) {
            this.fileType = fileType;
        }
    }
}
